Added checking for definition scope when using runtime parameters