Made sure waitForChildren had enough timing, time probably will need to be
refined