Exposing function for creating new AD primitives.