Almost filnal cut

Added flash control