Added this general calling interface.

Signed-off-by: David Brainard <brainard@psych.upenn.edu>