Main Loop iteration
Implementation of encription top container