Add functionality to set effect

Fixes #5
Add interval when effect must be shown.