First crack at some common framework code.