Implement parts of highlighting