Starting to add grid detection module.