Removed need for unsafeLocalState

Still need to move over to the State Monad.