Add truthiness checks for callbacks and add keepCursor setting