Slighly saner way of doing the text selections