Alternate implementation of before_save