Remove unused library and log messages