Started on the new stat system.

Signed-off-by: Atheriel <atheriel@gmail.com>