Added flush to servomotor file