Basic framework code.