Added path variable.
Fixed warnings.