Implemented away side analysis in macro