Use functions in provision script