Some cursor utilities