added inquiry functionality. Not yet functional.