Fix locking on stats command.
Documentation + set an opaque for easy debugging.
Remove tabs.
Improve testing.
Remove tabs.