Created replaceTriplet method to have ability to use transactions in storage.