Added inline optimizations.