Added comments.
Process all participants.
Added memory parameter
Added memory parameter