Modify sample to accept root level value