Added settings and changed to cs class.