Added error class