Added settings and optional Google analytics