Generate path