Simplified path code