Cleaned up newFileExtension