Implemented callbacks.