Log demons testing, some bug corrections