FunctionTask simplification