Adjust code for deviation