Bug fix. Now it builds and simulates correctly.