More generalized handling of examples