Custom stream init method created