Turning listeners into commands