To assess whether effects extended beyond resting state to tasks that increased cognitive load and therefore brain metabolic demand, for the diet study and case study, participants additionally navigated virtual reality mazes using an MR-compatible joystick (Nata Technologies). We created these mazes using the Aldous–Broder algorithm in Daedalus (https://www.astrolog.org/labyrnth/daedalus.htm) and programmed them for a virtual reality scanner environment using Vizard (WorldViz). For the spatial navigation task, participants made use of spatial encoding and memory in finding their way from one end of the maze and back. For the motor task, participants simply followed a corridor and therefore navigated without making decisions.

https://www.pnas.org/content/117/11/6170