Fix to make options set before calling function.