Do not exit script until it is done