Handles file extensions itself