Cleaned up kid_sd.r