Fixed issue with passed options being ignored.