Need to figure out why 0 is being output everywhere