Added validation. Updated logging!