First version of the unharcoded deploy() method