Implemented fromURL functionality with tests. Needs a review.