Main and methods