Changed such that it does not stay in the same state