I think this is better done client-side