Added common code as a submodule.