Added a new function adaptor