Updated old script in sample file