Fixes #4 by improving support for edge options