Removed the extra check for padding in use_interface/unknown and implement_interface and custom_cross_function to make sure N < num_functions