Implemented goal deleting.