Removed interface function number calculations from cross_function and custuom_cross_function