Changed cost factor to be flat except when VM is terminated. Fixed a bug...

... where VM was set to pausable, which is not supported.