Created new variable 'acceptedFileTypes'.

Allows the code to be more modular.
Incorporated 'acceptedFileTypes' into autofind method.