Fixed issue with Role matching of objects. Now uses auto-incrementing IDs instead.