Changed to make clear how to do with more than one action in when part.