Almost got logs working right