Removed unneccessary code
Truncate long file names