Made animation duration configurable