Implemented -m param to make test case 3 work