Added defination of cursor