Added error-raising code for debugging skills