Main and file stoof