Refactored some code. Implemented GetTransaction.