Updated to take variable url