Fixed passing tables and a typo, added some table passing security