Interaction entity support (#2489)* Interaction entity support* use duration instead of time for interactions (commit: 92fc9f7)