WIP - writing stats