A few pieces of code that SFMOMA staff have written that you can use as a reference.