Updated example to show how to do pre-select