Added some initialization functions. Will continue tomorrow.