Added history using the up and down arrows