The code that powers the grey box.