Removed extra instances of removeFile method