Updated the put method for the first insert