Answer by Glenn Slaven for Function not preserving the old values - http://stackoverflow.com/questio...