Added support for multiple interaction types.