WIP
Reset cursors currectly when there was no movement
Add support for creating and deleting periods