Added sendMessage and waitForMessage action.