Adding phases and scripts