Added Bryans code