Sets functions correctly

Sets cursor of DeleteEntity.
Removes redundant functions.