Changed len to length