Updated sm_random