Implemented a URI parser for smoother connections.