Add error handling and ability to generate multiple clients at once.