Add setOption method