Layout module and prepare for bdd.