Add support for multiple cursors.