Write_Blueflood cleanup

I think I merged upstream and someone had changed it in master. I have the same copy as master now