Change plan function modifed