Fixed issues with initial document value assignment. (Operating forwards from last state, not backwards from current state.)