Added file select function