Fixed example and removed optimization.