Implement most of setup command