Use 1.9 compatible method to compute frame length