Animation updates

Added code to update animation frame based on time.