Separeted settings out from app. Made sudo work.