Purging old log entries - still work in progress