Moved prepareTransaction method to the .