Added constructor to cross_function and custom_cross_function checksum and sizeonly