More work on new piece format, adding API level above utils