Hacky attempt at recursive memory structures