Adds environment task.