Added a primitive ER macro expansion step