Removed unnecessary length parameters