Settings done. Need refactoring.