Storing previous called commands in the local storage