Set up data lengths