Added console output for errors.