Removed settings.conf and improved check_azn function