Shifted FlashEmitter code to its own module