Added new shared function for param checking.  Also started relational stuff.