Changed transition and identity function