Add stripped-down version of the code