Add all code from shad.