Reworked advanced section into cookbook