Creating mainframe