Added time delay in position calculation for large files. Very large files(>2000 nodes+edges) still cause script to become unresponsive.