Added logging during analysis