Updated to support log tail