Expanding and Condensing Logs