Added functionality for processing logs