Rewrote brackets to be far too clever for its own good