Template:Shared ped functions