Cleaned up script and removed error header