Add function calls to main.c