First attempt at the pathname lookup