Added statistics to the core. Made pipes with size on the constructor. Modified tests