Updated loader code example