Started the implementation of the callback function.