The government has allocated Rs.15 million to erect an electric fence to a distance of 30km at Moragahakanda to prevent elephants frequenting areas inhabited by humans.