Template:Ped functions