Moved file type checking to proper location; Started a usecase