Initial stage of code