stop and waitcontrol variables now as atributes. stop and wait still working