Added facility for calling extern C fn