Added linked list stack to store function names