Added the check functionality.