I was mainly thinking of an easy way to deal with your double equals here. I can see why you wouldn't want a generic options object but you will have to put checks in here then to ensure end is what you think it is.