Cleaned up front-page code.