Refactoring auto check API.