Implemeting "for" structure to putting jobs running