Added small logging class for easier debugging.