Added pseudo-code to loop()