added controls. added nonblocking code. more sequences