Refactoring.
Added assertion of a complete path.