Add some code to receiving streams