Added primitives to core-lib.