Changes to calculate rewma from reciever timestamp