Add implementations for action and expect.