Implemetn Frameavailable event.