Method, and called in main variable.