Added error class and initial error handling