Changed default timeout, added error checking, and checking for no results.