Adding basic per device stat logging.