Memorizing spatiotemporal patterns.