Moved Paths Code/Functions into extension where it belongs.