Add dj algorithm