Improve loops. Add deployment sripts