Added multi cursor functionality