changed code for dealing with noise in the interlace'
Added more debug messages