Added variable counter limit.