Remove trace function