Figured out why calling pic_add() crashes (no fix yet)