Implemented get/next_keys methods.