Moves lastSelected to a publish block, then set reflect to true.

Fixes #30