Added all functions except end, testing on animation duration