Module the main part of code