Updated to accept url as input