Add command for 'check' and 'repair'