Implented output lgging