Moves specials into functions && Fixes segfault on erasing