Adding separate files to handle hooks