Added sharedFiles parameter to addPerr method in mediator.