In reply to JockDaRock.

Full credit goes to Patrick Ogenstad here.