added logging messages, set iterations to 20