Add Functions for using in managed code.