added option to change the initial phase