Removed a bug introduced last commit and now should support multiple file sizes