GameObjects are now automatically added into the scene. Also fixed two infinite loops.