Added clear and comments for foreground/background processes