Add localhost check.