Working on CP and MAIN