Refactoring to enable multinvocation thread done. Now there's a multiinvocation thread which listens to the multiqueue