Added some printing to make debugging on the cluster easier.