Added putAt implementation.