Added loggin