Removed unnecessary length check.