Effort to refactor Kareltje into portability