Added logging in task7