Removed a lot of duplicate code by creating a "checkOwnershipMixin".
Added TODO's.