Adding bool and enhancing pkm format.