Added check for active machines