Add the proper sort commands
Log any network search errors
Document the exception
Wrap it all in a try