Ok. Again, we will be able to help more if you point us to the code. There are some examples around on how to deal with signals but it seems to me you are doing something that does not directly match to the (exhaustively) explored switching states case. Here is something as I wrote anyway in case it might be helpful: