A fast fetch based on example code by Matt Gallagher