This is wrong — it will break certain builds (search for `frame_size` in this function).