Added ability to print state