Page generation script almost done