Added conditionals for define statements.