Move Animation Loading to Its Own Function