Qpractice: restore log rules added and code clean up.