Added functions for cycle by cycle entrainment