Made changes to before_save.