Added Pseudo-Code