PR from GCI staging_done branch

Had to do some conflict resolution as well. :|
Why is this a variable? Should be inside select()