Using a switch to allow for animations