Removed hard coding for retrieving files