Documentation, separated mode update to two functions