Updated to more extensibly handle selectors and implemented basic find function.