Wrapped selection logic in selectElements. You can now specify the scope.