Added missing flash function call