New config parsing which is bash3 compatable and more efficient.
Also cleaned up variable names.