Made minor preparations for SceneLoader. Made LogMessage safer.