Added settings activity and preference variables