Changed upate to take the number of frames updated (as a double)