Implemented checking row usage before deleting. Issue #76.