Completing logic for index file, although not CSS.