Remove statements that were unused
Add statement to generate file list for function