Build function of moderation