Primitive functions

Includes digital logic primitive injection!
:fireworks: