Updated to read URL input