Changed the paramaters of ad-hoc_setup