FIX: Use bool param to say if inv is already prepared