Update functions.php

Update flags