Added phases for rest processes and some comments