Added apply function so the profile can be resaved