"J.P." writes: Actually, that can probably be simplified a bit.