WIP - apply primitives