Added a length arguement