Move flags to init()