Refactored the Racer template pattern.