Added variable scoping in compound statements (statement blocks)