Change alState.c to the new error handling