v0.4.0

Implemented the Stateful state management system.