Added Psuedocode