Cleaned up and commented unlink_item better