Added entity finding functionality

Not much use, mainly for GUI functionality. Should not be used much as
it is slow.