Added support for URLs as input