Stats collection

Implementation of basic stats collection for updated scheduler.