Are you picking the correct tools? I don't see your program description as needing a state machine. You simply want to dispatch to one of 10 functions. I don't see your program as needing a task...