Edit: I made a typo in the snippet above and corrected it.