Added logging here.