Reimplementation of the animate function