A new script for reading the logs - not completed