Accompanying code can be found on GitHub