Improved getSceneConfig function