Added precedence rules