Added animation duration control