Added support and test for custom CES methods.