I notice this 500 being called a couple of times for transition/animation. Maybe factor as a constant?