Add massive apply-primitive function