Added entity overlay functionality.