Added extra functionality to log class.