Turn APPEND macro into static function