Added flash and fixed bugs with positioning.