Added loging scanning and small changes to registration scanning