Added the rest of the primitive functions.