Converted to PCL. Removed logging.