Modified for adding uploaded files