Changed to use new instead of factory method a29e371.