Attempting to create a fully functional hooks file