Forgot pseudocode and missed a minor line of code