Alerts removed, better error handling added, 2 spaces converted to 4.