Library for peer simulation