Add updatelink function
Update OutputStream