Fix a missed results bug with k > 1
Implement keysOnly option