Importing 1.0.1 version of megatest, work in progress, please wait for next release)