Neat technique here. Didn't know about this primitive_* API.