Update Code for errors