Added function to reset logs.