Added relative path code.

PITA