Implemented openURLs function.