The Main framework of the system