Modified to support various logs, modified to use entrypoint.