Add move_cursor() function.
Refactor and add signals and alarm.