Updated to accept URL