Move all Callback related functions to a new file.