Integrated working cursor(Some minor bugs but otherwise works fine)