This is pretty clever.