Started work on guarded recursion check function.