Paths reading functional moved to separate class