Updated to get urls from config