Change how g:root is defined