Added current state mode.