Removed a redundant call to createNewFile