Changed visibility of fields to private in Task.