Needed constructor for registration