Flash logic

Goo abstraction here.