Fixed overflow and simplified syntax.

The fix is not tested for correctness though.
Add Fast configuration.