Update support material code to use shared memory