Added support for simpsons method