Add methods to transaction and repo