added possibility to set max time consumption for cg only