Added error code back in to try and fix note issue