Add code for smart fe output