Removing unnecessary logging code.