Functionize Check

fixes #3.