Added setPath method (unfinished).