Add performance statistics; changes to procedures