Move ctors to top.
Add cursor support.