Changed logLimit to just int value.