Added more methods for logging and moved them to their own file.