Initializing filehandler here, previously could trigger condition where it was not defined but attempted to be accessed.