Added logic to fetch all previous tx