Added a file handler for logging