FLAGS = 0 is supposed to tell the LCD routines that it should intialize the LCD the next time an LCDOut command is received. Effectively it forces an initialization on the LCD when you call the LCDOut function.