Intial version of parent loop