quick 5-min implementation. Works horribly.