Refactored Survey to support pages.