Honor custom RPC URL

Not everyone uses default settings, therefore I added a bit flexiblity.