Implemented component mappers. Not particularly pleased with performance.