Implement building temples.