Added turn phases and turn loop