Fixed and tested block cursor functions.