Added flush script