Changed NLog method to avoid deprecated ones. Update libraries