Added all the functions when stack runs into an operator