Add a put() method with length