Changing the Layout invalidation scheme: if one element would cause the next to be invalidated, it would take one frame for it to get updated. This caused screen flickr. Generalized the 'callLater' concept into a static utility function, that's capable of queueing up multiple functions, solving the problem at hand.