Revert "Revert "Grab states from a file""

This reverts commit 9f93fd02c5b2566d51c7a34f97c55ccd21a99547.