Removing excess logs