Plasticity code updated to handle per-ringbuffer scaling