Add callproc API with a minimal implementation