Added parameters to returnHistory functions

We were missing parameters. Whoops.