Added basic cusor code