Fix logger, remove unneeded functions.