Performance check

Mst object functions are moved to prototype in case of running multiple
instances