This is the embedded implementation of Spook v2