Changed initial value of sessions_between_states to 1 instead of 0