Removed debugging print.
Fixing state passing.