Also I'd say this code should be in the profile field manager