Improve rank indent
Improve rank indent
Log function added