Added function for adding a selector trial