Removed redundant static filehandler, and moved handling to settings.