Next steps towards PDF. Now creates proper selectors.