Added roles and ownership checking. :)