Added polling time logging and split aggregated stats to other query