Variable:options is changed into an instance variable.
Unification of error handling.