Made ability to put on subdirectory work. (Mostly)