Added reference deletion functionality
Honestly? No idea