Changed attributes from Main to IMain.