Added option to enable or disable animation upon initialization