Flex options

I'll probably release this as 1.0.0.

@roncli @danielgutenberg @tleunen @cnelson87 @iccthedral @JohnRandom

Can you guys test this branch and see if if fixes your respective issues?