added functionality to limit number of transactions returned