update to pull/232 Keen99 p/deleteidlestats

Updating to be merge-able prior to final review.