Added support for specifying state in post