Fairly working version of  main page.