It would be good to have json as an option instead of pickle for tasks. This will maybe reduce the valid types of arguments to fn significant but more secure.