Added functional delete function. Working fineso far.