Changed settings to engineSettings.

Completely removed local variables to hold settings, uses engineSettings
instead.