Edited Pseudocode