Changed insert() and delete() to return booleans.