Improved logging and corrected timestamp parsing