state now keeps track of last N heights.

N = 5 right now.