Implemented compute_frame_parameters()
Implemented buffering.