Stripped-down the code to something painfully simple