Add "optimizations".

Fixes issue #48.