Adapt, modify program as function of configuration of machine