Added global configuration and made some corrections.