Rebuilds files