Added setup function.