Added new file for main cycle