Fixed the path checking to be methods