Modified Setup Script to catch Errors