Now switches phase automatically.