Adding file type finder function - very basic at the moment