Remove the functions after the loop is done.