Added further stats collection, JSON stringify'ed the attributes too