Working spike solution (lacking tests and other stuff but works so
far...).