Set logging limits, move attempt_define to utility.inc