Adjust file logic