Added heretics functions