Fandom: fixing syntax, adding logging