New log table, other fixes