Fixed an issue where $options array would be ignored.