Changed error variable to be more descriptive