Could you add a quick comment here about what "plain" means and what the logic is doing?