List of waiting tasks added. dispatchTask method modified to match the
specification. Method sendParamsToPeer added.