Moved flags from array to string