Callback for create() method.