Implementation of RRD update function