setOptions() implementation, closes #3