Added thread to transact payment