Added support for saving previous results for later use.