Refactored how forms get files.