Added ability to modify animation type and set a max bar num