#201 Added the 'check' function