Added ability to pass options to fit