MAGMA-218 length() method added.