Adding loggin