Check the pseudo code again