Fixed precedence issues resulting in incorrect statement heirarchy