Made options configurable through the constructor.