Add implementation for put