Add code for startup policy to examples.