Added support for loading previous pages.