Drafted code to load log entries