Need to rewrite the check function.... Enabling Processing of variables contained within functions.