Made a start on the flashes functionality