Added export method and added TaskOptions