Currently it is assumed that the frame_ids always start with 1. We should support more complex schemes here.