Added basic functions and program skeleton.