Added crazy encoder shit