Added convertion from task function to string.