State handling base implemented.