Merged the modify functions together