Thanks for the quick response!
Hmm ok, so reversed doesn't change. My problem though is that onUpdate is only being called in one direction and not the other (regardless of value of reversed). In the docs it says that onUpdate is called for every frame, but it seems to be only called when going one way. The console log appears only when the boxes shift to the right, and not when they shift to the left.