Fixed reading from files for cluster