Renamed 'parent' context switch to 'ancestors' and added actual 'parent' switch