[PATCH] Add initial implementation of klist helpers.