Cleaning up the code some by storing the Selection Model into
a variable.