Add Module checks for null algorithm.