Saved the functionality for selections