Finally compiled properly on #!, but the updates arent running properly, and the data is sometimes going NaN without a clear reason