Fixed the code for ya Zack. Inputs all files correctly now.