Implement selectors

I'll double check this at some point.