Cleaned up some of the code and created another script to show errors collection.