Simple implementation, without frame queue to reduce the memory