Seems to be somewhat working now, still need to tweak why it seems to have the root be 0s at times