Implemented before_registration etc