Added framerate limiting.