Execute the functions based on user supplied arguments