Added hub script for cluster simulation, some bug fixes.