Added primitive implementation.
Added primitive to main header.
Merge fix.