Make batlog work