Added length() and independent variables