switching from length to limit for sex to resolve #4

@whastings when you get a chance could you look at this and see if it fixes your issue?