Added logging step