Added length function. #193