Wrote getCursor