Got template scaling working.