Final (hopefully) implementation for paths