Copied over all code from github.com/matti-kariluoma/spreads.git@plugin-boilerplate