Cleaned up old object recognition code.