Also take into account active threads