Basic framework of code.