Allow setting custom file handler