Synchronize spin on period

Spin is now occuring on the period edge.

Signed-off-by: Francis Giraldeau <francis.giraldeau@gmail.com>