Updated code patch