Separate function for Animations

Needs to be tweaked, but it is roughly there.