Updating to use Animation Frame