Made file_select more functional