Extended the file controller class a little bit.