Added shmem version of the loyalty update device function. Timing.