Added support for asynchronous objective functions and example