Add sample extern function