Added basic delete functionality, needs tidying.