Update sub.c to build with new functions.