Added put command code
Added Func for put command