Restructured erracc to make appending work as intended