Duke Energy crews were at the corner of Purefoy and Mason Farm Road in Chapel Hill for several hours trying to restore electricity.