Added module dependency checking.