Removed the call to setOptions and now everything works.
Updated notes.