Finished P1

Should fix wrong TTS value assigned when a process is to be blocked.