Removed lambda function from register.