Added more comments, made log less verbose.