Add while and if phrases