Adding discovery to es