Added number of errors. Removed debugging alerts