Resolved #7: make parent wait for child