Building a custom selection tool