Added method extractLengthFrom