Made big files work properly, also deal with malformed requests