Put flag vars inside main