Separation of the different parts of the master thread.