Updated header and made a small code change