For the learnings of me, make FunctionQueue class.