Added main body program, continuing updates of sweep