Fixed programming mistakes. Now Sphere compiles.