Changed a missed .megatest to .mtdb. Removed useless thread. Removed old commented code.