Bug fix for mutiple file and added $response