Arbitrary, multiple synchronous message function?

It looks ok.

Are you certain payload contains a number? Add a debug to output of node before this node to check