Made the main function call check_module.