Added error prototype