Refactored allowed extensions into array and added new values