Removed hard coded allowed extensions