Adding loging