Put the callbacks in external file.