Cleaned up fileresponse. Refactor.