Setup structure
Got it working. now need to fix it so that memory doesn't grow