Removed redundant peersim code.