Fixed: Setting the flags with boolean values.