Allow NULL data, interpret last_timestamp, fix bugs.