Add support for allow_nil and prefix options