Fix cursor move
Remove cursor variable
Fix pack/unpack Long value
Removed debug logs