Working to get logs / duplicate-checking working