Parse in module

Don't review yet.
Actually, I commented this one out because it is code written by @yilongli and I wanted to ask him why did he needed that. In the front end this restriction doesn't make too much sense.
So.. @yilongli, do you remember why you needed this check?