Added flush helper