Simplified Nimrod solution further.