Adding support for castle options.