Most of the source code