Added add_frame method