Added the modify function