Removed redundant length lookup.