Converted to use list and vector of pointers instead of references since I could not get references to work on cwolf