Module logic.