Allowing options for search call and returning file listing