Local and remote stats collection working