Some attempts at optimization.
Simple opts.