Preliminary setup.